﻿// -----------------------------------------------------------------------
// <copyright file="LoadResource.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace BloodThirsty
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Content;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class LoadResource 
    {
        ContentManager ConTent;
        public LoadResource(ContentManager content)
        {
            ConTent = content;
        }
        
        public Texture2D LoadBackGround()
        {
             
            Texture2D HinhAnh;
            HinhAnh = ConTent.Load<Texture2D>(@"images\background\menubg");

            return HinhAnh;
            
        }

        public Texture2D LoadBackGround1()
        {
            Texture2D HinhAnh;
            HinhAnh = ConTent.Load<Texture2D>(@"images\background\Background2");

            return HinhAnh;
        }

        public Texture2D LoadMenu()
        {
            Texture2D HinhAnh;
            HinhAnh = ConTent.Load<Texture2D>(@"images\dialog\menu\menu01");

            return HinhAnh;

        }
        public Texture2D[] LoadMangButton()
        {
            Texture2D[] ButTon = new Texture2D[12];
            ButTon[0] = ConTent.Load<Texture2D>(@"images\dialog\control\button\newgame\idle");
            ButTon[1] = ConTent.Load<Texture2D>(@"images\dialog\control\button\load\idle");
            ButTon[2] = ConTent.Load<Texture2D>(@"images\dialog\control\button\help\idle");
            ButTon[3] = ConTent.Load<Texture2D>(@"images\dialog\control\button\option\idle");
            ButTon[4] = ConTent.Load<Texture2D>(@"images\dialog\control\button\about\idle");
            ButTon[5] = ConTent.Load<Texture2D>(@"images\dialog\control\button\quit\idle");
            ButTon[6] = ConTent.Load<Texture2D>(@"images\dialog\control\button\newgame\hover");
            ButTon[7] = ConTent.Load<Texture2D>(@"images\dialog\control\button\load\hover");
            ButTon[8] = ConTent.Load<Texture2D>(@"images\dialog\control\button\help\hover");
            ButTon[9] = ConTent.Load<Texture2D>(@"images\dialog\control\button\option\hover");
            ButTon[10] = ConTent.Load<Texture2D>(@"images\dialog\control\button\about\hover");
            ButTon[11] = ConTent.Load<Texture2D>(@"images\dialog\control\button\quit\hover");

            return ButTon;
        }
        public Texture2D[] LoadMangFire()
        {

            Texture2D[] MangFire = new Texture2D[16];
            MangFire[0] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire00");
            MangFire[1] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire01");
            MangFire[2] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire02");
            MangFire[3] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire03");
            MangFire[4] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire04");
            MangFire[5] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire05");
            MangFire[6] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire06");
            MangFire[7] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire07");
            MangFire[8] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire08");
            MangFire[9] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire09");
            MangFire[10] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire10");
            MangFire[11] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire11");
            MangFire[12] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire12");
            MangFire[13] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire13");
            MangFire[14] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire14");
            MangFire[15] = ConTent.Load<Texture2D>(@"images\dialog\control\button\fire\fire15");

            return MangFire;

        }

        public Texture2D[] LoadDemonStand()
        {
            Texture2D[] Stand = new Texture2D[64];
            Stand[0] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-00");
            Stand[1] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-01");
            Stand[2] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-02");
            Stand[3] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-03");
            Stand[4] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-04");
            Stand[5] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-05");
            Stand[6] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-06");
            Stand[7] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D00-07");

            Stand[8] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-00");
            Stand[9] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-01");
            Stand[10] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-02");
            Stand[11] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-03");
            Stand[12] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-04");
            Stand[13] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-05");
            Stand[14] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-06");
            Stand[15] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D01-07");

            Stand[16] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-00");
            Stand[17] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-01");
            Stand[18] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-02");
            Stand[19] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-03");
            Stand[20] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-04");
            Stand[21] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-05");
            Stand[22] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-06");
            Stand[23] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D02-07");

            Stand[24] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-00");
            Stand[25] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-01");
            Stand[26] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-02");
            Stand[27] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-03");
            Stand[28] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-04");
            Stand[29] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-05");
            Stand[30] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-06");
            Stand[31] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D03-07");

            Stand[32] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-00");
            Stand[33] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-01");
            Stand[34] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-02");
            Stand[35] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-03");
            Stand[36] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-04");
            Stand[37] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-05");
            Stand[38] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-06");
            Stand[39] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D04-07");

            Stand[40] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-00");
            Stand[41] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-01");
            Stand[42] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-02");
            Stand[43] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-03");
            Stand[44] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-04");
            Stand[45] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-05");
            Stand[46] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-06");
            Stand[47] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D05-07");

            Stand[48] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-00");
            Stand[49] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-01");
            Stand[50] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-02");
            Stand[51] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-03");
            Stand[52] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-04");
            Stand[53] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-05");
            Stand[54] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-06");
            Stand[55] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D06-07");

            Stand[56] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-00");
            Stand[57] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-01");
            Stand[58] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-02");
            Stand[59] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-03");
            Stand[60] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-04");
            Stand[61] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-05");
            Stand[62] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-06");
            Stand[63] = ConTent.Load<Texture2D>(@"images\character\Demon\stand\D07-07");

            return Stand;
        }
        public Texture2D[] LoadDemonMove()
        {
            Texture2D[] Move = new Texture2D[64];
            Move[0] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-00");
            Move[1] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-01");
            Move[2] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-02");
            Move[3] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-03");
            Move[4] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-04");
            Move[5] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-05");
            Move[6] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-06");
            Move[7] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D00-07");

            Move[8] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-00");
            Move[9] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-01");
            Move[10] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-02");
            Move[11] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-03");
            Move[12] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-04");
            Move[13] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-05");
            Move[14] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-06");
            Move[15] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D01-07");

            Move[16] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-00");
            Move[17] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-01");
            Move[18] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-02");
            Move[19] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-03");
            Move[20] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-04");
            Move[21] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-05");
            Move[22] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-06");
            Move[23] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D02-07");

            Move[24] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-00");
            Move[25] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-01");
            Move[26] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-02");
            Move[27] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-03");
            Move[28] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-04");
            Move[29] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-05");
            Move[30] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-06");
            Move[31] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D03-07");

            Move[32] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-00");
            Move[33] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-01");
            Move[34] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-02");
            Move[35] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-03");
            Move[36] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-04");
            Move[37] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-05");
            Move[38] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-06");
            Move[39] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D04-07");

            Move[40] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-00");
            Move[41] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-01");
            Move[42] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-02");
            Move[43] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-03");
            Move[44] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-04");
            Move[45] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-05");
            Move[46] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-06");
            Move[47] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D05-07");

            Move[48] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-00");
            Move[49] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-01");
            Move[50] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-02");
            Move[51] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-03");
            Move[52] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-04");
            Move[53] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-05");
            Move[54] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-06");
            Move[55] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D06-07");

            Move[56] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-00");
            Move[57] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-01");
            Move[58] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-02");
            Move[59] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-03");
            Move[60] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-04");
            Move[61] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-05");
            Move[62] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-06");
            Move[63] = ConTent.Load<Texture2D>(@"images\character\Demon\move\D07-07");

            return Move;
        }

        public Texture2D[] LoadMangMap()
        {
            Texture2D[] Map = new Texture2D[64];
             
             String a;
             for (int i = 0; i < 64; i++)
             {
                 // Do Ga trong cach dat ten file. Nen phai them dong lenh de chuong trinh chay dung file load resource
                 if (i >= 10)
                 {
                     a = @"images\map\map01\res000000";
                 }
                 else
                 {

                     a = @"images\map\map01\res0000000";
                 }
                 a = a + i.ToString();
                 Map[i] = ConTent.Load<Texture2D>(a.ToString());

             }

             return Map;
        }

    }
}
